Added jquery event binding methods to prevent binding elements multiple times.