fixed trend api error, added filter control on client side