added used id's and some editing features