added to logic to remove style attribute from navigation on resize