replaced mouse control with gui