implemented bus driver and fixed alot of issues in gui