Fixed app.clicked handler according to new stanard