set preview and error div for offserver view