fixed autolayout issues for different device sizes