fixed bug: close box on f2