Updated JS & views to be able to delete posts / pages