changed ui and made changes in api