added update main sheet functionality