why are these methods in application controller?