replaced view-function to ajax via get method