switched from selected to clicked row in copy actions
fixed refactoring but in clipboard clearing