Commented out legacy pointer code in UI, legacy mouse events in UI and elements