Click event of empty and error