menu tree filter based on required