improved webapp template