allow getting the last query
fix visibility
allow getting the last query
hide, esc, and backspace fixes