updating mobile layout