added popup scripts