removing wrong call for init angular
adding jsonSerialize to json encode for session