add some usfull functions and add serach parameters to news page