Thanks, dop2000 I created the Array, Please check the c3p. The issue is
[ Map: MenuLayout>OptionLayout>SubOptionLayout ]
When the user at "SubOptionLayout" and click back It will lead to "OptionLayout" and then at "OptionLayout" when the user clicks back it again lead to the previous layout that is "SubOptionLayout". So whats happing here is The user is going forward and backwards between "OptionLayout" & "SubOptionLayout" on a loop. :(
Recording a history is also not too difficult. Create an empty array with width=0. On end of any layout push a new record into the array with LayoutName.
When you need to go back to previous layout, read last layout name from the array - Array.At(Array.width-1), then delete this index.