added basis; added data fetching via ajax;