some part of the view was edited and coding controller part