added some new blocks to handling responses from ajax