handle application pauses on android and add leave action