improve method for retrieving settings from GUI