fixed so delete also deletes from angular, and made the header a link to the index