add focus mode
refactor