Making methods in controller public.