cleaned up code in profile.html