moved often used before filter to application controller