added social button, view pages and class methods