Refresh selection and clipboard now working

WIP
Delete selection
Delete selection fixed