now add function to 1.add new event, 2. upload images