Fix missing brace and make button click