basic functionality of editing and deleting selections