Fixed show and edit functionalities and JSON objects retrieval

Fixed show and edit functions and JSON objects retrieval.