Implemented the add event activity. (Very roughly)