fixed web app lifecycle issue
Merge pull request #53 from chaturadilan/master

fixed web app lifecycle issue