fix(category): fixed logic to restrict voting

- wait till data is loaded from server
- fix template vote button display logic