controller edited for setting mobile layout