finally debugged that error, new error when trying to display detai view