added alerts and notices, wrote the session destroy action