Modified MainActivity for GCM. Added Dialog and Progress Dialog to Profile Fragment