filter function working on view page
minor fix on view page