fixed delete functionality in user interface