fixing various bugs, added detail image view