keep index with use of widget via directive