fixed stop button name in xml and added trycatches