added profile page functions