moved functions to view
added my customized json serializer of django objects, integrated them into view responses