functioning web app:code cleaned