added delete btn pseudo code