keep track of showSelection mode