updated  main gui stuff