added details to edit page, added formatting js functions