implemented the both button for view all commitments