When using curly brackets, you MUST have the same number to close them. Your leaving pages screwed up because you not closing the curly brackets in edit.
Ok, and sorry for forgetting !