Use uri dispatching for better uri handling