key error fixed, minor gui changes