refactored gui constraints