integrating mootools into pairing panel because its there and makes the code simpler