moved controls

so they're defined before script calls.