use inheritence for popups