Revert all changes which i tried for webapp

The code is now functional on my local machine