Removed the dialogue button, and added a utility class that shows an
alert dialog for finishing an activity.