more refactorings for gwt
refactored the gwt steps to introduce templates