- fixed a bug with inserting close buttons back when edit mode is triggered