Fixed problem that it need not necessarily be panel-0 which is the user panel, but may be panel-1 -2 -3 etc...