Added new attribute for product discontinue, added javascript and helper functions