added a preview button