Moved common Monitors add and edit form code to elements.