Added a check to see if we are overwritting a modude/page