made custom directive,edited dummy data, added send api to webserver