Automatically closes the register & filter boxes if the page width is less than 590px