fixed delete functionality, fixed views