add an option to enable selection functionality