update layout and style for mobile