made some style changes, added some events