get and delete page by id