moved helpers to own file, adding updateExpander method to be called when edit is saved