some errors in gui creation