Correcting the indentation in this file would make it way easier to understand and read.  Also, separating out the event handlers from the bindings would make it more readable.