adding click hanlder to preview