added basic view details, fixed db key bugs