added data from server to directive