update query and views section