check params for views