created directive for archive widget