rename querystring `d` & `q`
rewrite indexAction(remove if statement)