added :edit to before filter