Fix closing inspector after delete
Rename apply to close. Fixes #325
Fix reloading of tiles from API after save.