added popup mine functionality