adding top/bottom to flow framework