Fixed delete functionality, working on refresh.