wired all stuff up to fetch data from server and shown in page, also fixed some bugs