Added tile styling and resizing code