Filtering of students is now working for lending view

Closes #230
Closes #419