Tag fix #270, fix #272

Add delete feature if no document is selected