implemented remove event function

- Implemented remove event function in the main page