added render layout functions