back button added, invalid id handled