Detail view added and minor bug fix