added max member input on new event and fixed stuff