Flash messages added, btndelete functionality updated