add logic to ngPastel directive