Fixing wrong view rendering for row

visibility of the views are toggled now.