Accessing follow and unfollow APIs in views