attempt to make popups appear in apple webkits
add functionality

also move css into its own file