fixed a lot of bugs in ribbon, added new-edit-delete plan feature