define action and connect it to a push button