This is useless as $entry isn't set ;) I don't know how to determine if the apps view is active (there isn't any gluei n $_)