GUI template made. Begin to  write code to handle GUI