added method to get the current application status.