Added ajax call, shapes controller, implement saving shapes