fixed delete functionality routing issues