adding before filter to links pages