Add check for CurrentRoute to handle back button events