edit functionality in api and views
add editCard() functionality
add editCard functionality in view