cleaned up gui and added configuration