added logic to create the correct nag buttons on the given screen