Fix #44: Panel styling is broken

Also fixing a few other errors with undefined objects...