moved selection rendering code from view.lua to selection_manager.lua