Don't detach, just append. Also try to maintain focus.