Delete button and fixed error with assignment view