json and html returned methods