settings controller and layout