moved selection logics from view to presenter