Refactored to use one go to home function
Added confirmation on delete. Refactored some stuff