added new sensor (ApplicationSensor) to capture the active application and the recently accessed applications.