fix gwt runtime error and layout