changing layout to support ios