changed the tiles() controller to send back two different structures of
data