popup edits
shortened some code
refactoring of pop-up
added comments
tweeking of pop-up
final aesthetics of popup
background fix
added graphical switches