Updates page dashboard
Refactors delete function to accomodate pages