adding checked in and refactoring stuff, just need to add checked in to detail view