Added confirmation alerts; fixed bug with upper case codes