add focus changed via function