cleans up the views