Cleaned up event handlers

Using jQuery's .bind method