cleaning up modal pages