prepared everything for building gui