updated crash code on profileButton