RLE and buttons working