added state fetch with remote api