implemented delete page and insert