Refactoring code. Changes made to top nav.