Added POST for buying and renting and fixed some listener issues