Bind query model to html