Added event adding funtionality