remove files that should be ignored
handle back button to leave whitelabelactivity if there is nothing left in the history stack