Fixed newline crash; added check for location error; added classes for header buttons