new actions handler, 'modes' now is a separate block