refactor moving stuff out of view