rectified the errors and changed the views and other required files