implemented part of page controller, json parser