use the correct layout for ajax