renaming author to username for consistency. tweaks for model delete and edit