ajax works for profile page