moving controller/view logic around