rebuild flow and view