refactored nav function
removing not used stuff from css