remove misplaced elseif in view