add main page and upload avatars ajax