get Method for gui