added device dependent layout for some views