added authentication
implemented helpers in application controller