added code for tiles

added code for tiles and changed layout a little