Moved interface specific functions to interface.js