HowTo Close a Subview

Recently I have a layout with a subview and a datatable. When selecting an item in the datatable a form is loaded to the subview.
Now i want to add a cancel button to my form that will close the entire subview. How can I do this?

It would be nice if the datatable would be at 100% width when nothing is selected and the subview will float into the page when selecting an item. Also the datatable should resize to 100% again when the view is closed.
I actually use a slider between the datatable and the subview.

example
https://snippet.webix.com/8mvnx43o