starting groundwork for popupview class