Edit application controller and added sessions controller