cleaned and refactored instance config form