moved jqueryval to layout