Implemented a sub menu for filtering templates