Implement filter and state query url

typo: phases -> phrases