Fixed Variable Scopes in Pages Controller.
Fixed Variable Scopes in Parts Controller.