added addtional element alert to not navigate away from page