added behavior: appropriate tab behavior for modal buttons