Small API changes and structure panel auto update