added return statements after redirect/render calls