Added AJAX requests on selecting all the items placed in database and registration. Registration doesn't work correctly yet. Changed render method on renderJSON due to frontend ajax requests. Ajax requests can't be executed without using renderJSON instead of render.