added rest controller returning JSON