added physics code for new nav menu