fixed some problems with delete and create pages