finished adding template and controller to directive