bug fixes
edit ad implemented