makes ok button for errors generic