added filter and icon function to scope