refactor delete page button