More gui updates
Fixed check for invalid parameters