flow for gui done, needs implementation