fix editing and viewing versions