Added minor event handling.
Modified some css