adding all event handlers; need to add comments to them