removed extra flash notice and fixed appication_controller