Implemented the deleting function and fixed an UI bug regarding the
themes in the bin