Query the status of application