Added if not defined statement to GridNav