added insertafter method to model (not working yet)
inserting correctly at index