Fixed bug where desktop browsers wouldn't update state based on window width