Added new controller to handle frontend