first revision of popup

pushing code as is