Add delete function to home page