fix multiple bugs; update webapp