Add plugin pre and post render