Refactoring.
app works via query string, form would be better.