added directive 'select-on-click'