replaced function based view to class based view
added propoerty to like layout
fixed warning for retryin to login to fb