remove extraneious function from view.