added form reset by adding attribute on success-icon directive