Various gui and local variable changes