removing unneeded functions from views