autolayout feature added to use constraints instead of conventional layout