changed main layout for mobile