script fixes for the sub nav section