reference pinterest code from pages controller