added resizing functionality to main nav