Added a minimum 300 width logic to main frame