implemented popup layout + basic functionality