update to use heap instead of stack in details widget