Remove mainFlow and hideFlow