add options to add viewParam query in url

add options to add viewParam query in url