fixed 2 bugs: not displaying correct icon for folder on creation and cancelling addition of new element