Add preview functionalities.