handle  application become active