Refactored modal width