Bug fixes and optimizations to table view and added animation to detail view (same one as main view)