Rework functions about selected tile.