Easily add Back and FWD buttons to your solution without having to script all your navigation.
BackMagic follows you no matter how you navigate, remembering the layout, active tabs, and status area state. And it’s easy to add to existing solutions.
It's also very easy to add your own.
The OnLayoutExt script trigger can perform a script that put's the current layout's name in a global field or global variable.
Your "back" button can then perform a script that uses go to layout with the "layout name by calculation" option to return you to that layout.
Modifying the two scripts to "push" and "pop" layout names from a stack of previously visited layouts is not terribly difficult to do either.