added conditional to profile view page to hide button