teacher view is set and ajax works without reloading page-- model layout is defined-