Added Interface Code

Remove interface from main.js
Added functionality to interface.js