async handling added. Getting data from server.