changed to getselectionend for EVERYTHING