add clear button and NSJSONSerialization