localize resources and refactor html code