Fix edit mode on homepage