added events and fix name of media