Many ajax-related bug fixes & fix account button