fixed copy bug, further gui cleanup