added before_filter to application controller