remove unused code, rename view function