implemented hint, debugged popup template