Added confirmation message boxes
trimmed uneeded code