change selecting layout in render method