improve action handlers to handle undefined actions