facebook authentication and some improvements done