Removed debug statements, fixed index view