Added functionality to ProfileActivity