finished directive for copyLocal button