adding flow to view
end for view