cleaning up and adding jsonresult decorator