implement setting activity

migrate from window to activity