Added scan button
fixed undo button