fix animation code causing bug where query box isnt hidden when it should be