gui spec refactoring