Added input validation and changed structure of views list such that the
app name is included (necessary to load the associated page content)