preview button now updating