resolve button click problem