add handlers and actions