Copy function now uses aligned writes rather than reads
Implemented mouse button handling for GUI components