implementing application status changing