in the onClick i have a semicolon after closeRecord();