Added support for hidden apps (bug 1019249, 1019251)

should this live in the form? is this the only place we do it?