modified the panel for events