added popup code to bare min setup