refactoring from MethodView to view function done. tests adapted due to the API modifications. Everything is green!