change mobile control

Also fix bug in layout.