Implemented snippetPopup directive