added controller logic and view for list of categories