added edit cards functionality