Add close button to query panel tabs