refactored modal to use table cell instead of transform