improve navigation javascript and styling