prepare funs for layout wrapper