removed unused variable
made preview object disappear