Minor changes.

Added touchlistener that recognize if a legend label was clicked so it
can be hide in the next part.