Added mouse support to the UI.