move displayedData to controller, fix value popup