enable functions using angular