reorganize directive angular