changes to directive and removed log
fixed callback url