fix some html errors and add gravatar to the account main panel