Moved view close logic

Close logic was in the addeditcustomer view instance instead of the
superclass.