Add functions for repeating events and create input form for events