Fixing issue with active state when responding to media queries;