Handling application scenarios and events basics