added checkbox filtering functionality