adding pre-render transformation step to frontend