add getView function for getting views

also updated controllers to use getView