loop and coordinate bug fixes and extend gui