update layout for mobile device