made various error correcrtions to User interface and other files