I figured out the problem associated for not switching to the last view.
1. When a button was clicked in any view it makes the "view" condition True.
for example: If i'm submitting the form - on click i make the value of submit to true. for Approve - approve is true, etc
2. On Form Options (Open and Save) i was checking if the value of submit is true and it wil swtcih the view (all good at this point) but this will work only one time and if the form is denied and re-submitted - it wasnt applying the rules properly and showing teh correct view. This is because all teh condition is checked and all the values (Submit, approve,deny) is true.
Solultion: I just had to make everything else false on the above options and then swtcih the view.
It now loops as many times as required.
Thanks you all for your inputs
Soham Bhatt