handle application become active