Added length, min and max textboxes for testing. Tab now works correctly in main window.