fixing preview button