added dynamically fragments and toggle button