Added the events for moda window