auto close panel on non-cordova project because bears