add calculate functions & detail GUI