add hooks for editing plugin content