Button disabled while using ProtoUI

Hi,

I am using the protoUI window to SHOW the animated window from click on the bottom toolbar menu icon. It works fine. It will HIDE on click of the similar looking top toolbar menu icon (on the animated protoUI window i.e. mywin). But when i use the bottom toolbar icons to show/hide, it works only for the first time. Once the animated window slides down, thereafter the bottom toolbar menu icon (on mainwindow) gets disabled. However it always works from “Show window” button.
Code–>
https://snippet.webix.com/darrmjxe

I need to keep using mainwindow menu icon to SHOW and the protoUI window menu icon to HIDE. Please help.