adding some comments and binding all class methods of the view