Created application controller and added alerts