Make support for sided gates

#1881
How we can provide addition parameter or use RPC for calling gui window?