fix flow tabs creation and removal