added new controller
implemented layout