Moved vars for Monitors edit and add views to appropriate elements.

This saves a bunch of redundant code, while putting the code in the
'right place'.