Detail view now works instead of crashing app