Perspective of educational environment on students’ perception of teaching and learning