fixed pagination view and added facebook js