Made the buttons work in  profileview