Applied module pattern to edtition gui