Changed the event handler for removing details.

The details have to be fixed and the size details updated to the javascript hasndler.