abstracted relocate view into own class