refactoring forms and esi for forum, notes, portfolio