main layout chagned