guery GUI done. just need to error check now