removed popup.js and moved all code into angular controller

Moved custom css into separate stylesheet