add settings target, focus
fix bugs