Cleaning up views
Moving common method to utils
Cleaning up