Android layout update and program erase bug fix