styles nav and changes type