added conditioning on payment button and whether a project is active to indicate whether you can add a new payment
show and hide the individual events depending on whether an event has been selected.