buttons array was left uncommented. resolved.