Made some changes to get delete and post working better.