Added a way to change icon/title of a panel
Fixed a race condition.