add serializer to make website restful