added before filter to controlllers